package com.yunbao.ioc.example;

import com.yunbao.ioc.annotation.Autowired;
import com.yunbao.ioc.annotation.Component;

/**
 * Created by louisyuu on 2020/3/4 下午12:25
 */

@Component
public class OrderService {

    @Autowired
    private ExampleBean exampleBean;


    @Autowired
    private UserService userService;


    public void callOther(){
        System.out.println(exampleBean.getExampleBeanTwo().getCity());
    }

    public ExampleBean getExampleBean() {
        return exampleBean;
    }

    public void setExampleBean(ExampleBean exampleBean) {
        this.exampleBean = exampleBean;
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }
}
